home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 March / PCWMAR09.iso / Software / Freeware / Adobe Media Player 1.6 / adobe_media_player.air / AMP.swf / scripts / _HSliderStyle.as < prev    next >
Encoding:
Text File  |  2008-11-25  |  1.6 KB  |  52 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.SliderHighlightSkin;
  5.    import mx.skins.halo.SliderThumbSkin;
  6.    import mx.skins.halo.SliderTrackSkin;
  7.    import mx.styles.CSSStyleDeclaration;
  8.    import mx.styles.StyleManager;
  9.    
  10.    public class _HSliderStyle
  11.    {
  12.       public function _HSliderStyle()
  13.       {
  14.          super();
  15.       }
  16.       
  17.       public static function init(param1:IFlexModuleFactory) : void
  18.       {
  19.          var fbs:IFlexModuleFactory = param1;
  20.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("HSlider");
  21.          if(!style)
  22.          {
  23.             style = new CSSStyleDeclaration();
  24.             StyleManager.setStyleDeclaration("HSlider",style,false);
  25.          }
  26.          if(style.defaultFactory == null)
  27.          {
  28.             style.defaultFactory = function():void
  29.             {
  30.                this.thumbOffset = 0;
  31.                this.borderColor = 9542041;
  32.                this.trackHighlightSkin = SliderHighlightSkin;
  33.                this.tickColor = 7305079;
  34.                this.tickOffset = -6;
  35.                this.labelOffset = -10;
  36.                this.tickLength = 4;
  37.                this.trackColors = [15198183,15198183];
  38.                this.dataTipPlacement = "top";
  39.                this.dataTipOffset = 16;
  40.                this.trackSkin = SliderTrackSkin;
  41.                this.showTrackHighlight = false;
  42.                this.thumbSkin = SliderThumbSkin;
  43.                this.tickThickness = 1;
  44.                this.dataTipPrecision = 2;
  45.                this.slideDuration = 300;
  46.             };
  47.          }
  48.       }
  49.    }
  50. }
  51.  
  52.